package com.example.avmanagerweb.service.impl;

import com.example.avmanagerweb.entity.SysDepartment;
import com.example.avmanagerweb.mapper.SysDepartmentMapper;
import com.example.avmanagerweb.service.SysDepartmentService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author xg
 * @since 2023-06-25
 */
@Service



public class SysDepartmentServiceImpl extends ServiceImpl<SysDepartmentMapper, SysDepartment> implements SysDepartmentService {
    @Resource
    private SysDepartmentMapper sysDepartmentMapper;
    @Override
    public List<SysDepartment> getsysdep(int pid) {
        return sysDepartmentMapper.getsysdep(pid);
    }
    public List<SysDepartment> getsysdep2(int id) {
        return sysDepartmentMapper.getsysdep2(id);
    }

    @Override
    public List<SysDepartment> getsysdep3(int pid, int id) {
        return sysDepartmentMapper.getsysdep3(pid,id);
    }

    @Override
    public List<SysDepartment> getSubquery(int id) {
        return sysDepartmentMapper.getSubquery(id);
    }
}
